/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const projectRouter = [
  {
    path: '/projects',
    component: Layout,
    redirect: '/projects',
    name: 'projects',
    hidden: true,
    meta: {
      title: '项目管理',
      icon: 'School',
      roles: ['ROLE_WORK'],
    },
    children: [
      {
        path: 'projectCard',
        component: () => import('@/views/project/projectCard/index.vue'),
        name: 'projectCard',
        meta: { title: '项目管理', keepAlive: true, icon: 'MenuIcon', roles: ['ROLE_WORK'] },
      },
      {
        path: 'info',
        component: () => import('@/views/project/projectHome/index.vue'),
        name: 'projectInfo',
        hidden: true,
        meta: { title: '项目详情', icon: 'MenuIcon', roles: ['ROLE_WORK'] },
      },
    ],
  },
]

export default projectRouter
